package com.jy.api.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by lihu on 2017/12/1.
 */
@Component
public class ComponentUtil {


    @Value("${api.gateway.url}")
    private String apiGatewayUrl;


    /**
     * 微信分享接口
     *
     * @return
     */
    public String getMemberCoupon() {
        return WechatUtil.MEMBER_COUPON.replace("API_GATEWAY_URL", apiGatewayUrl);
    }


    /**
     * 获取微信回调接口
     *
     * @return
     */
    public String getMemberCallback() {
        return WechatUtil.MEMBER_BACK.replace("API_GATEWAY_URL", apiGatewayUrl);
    }
    /**
     * 获取微信回调接口
     *
     * @return
     */
    /*public String getMemberTableNoCallback() {
        return WechatUtil.MEMBER_TABLE_NO_BACK.replace("API_GATEWAY_URL", apiGatewayUrl);
    }*/

    /**
     * 获取微信回调接口
     *
     * @return
     */
    public String getMemberPre() {
        return Contens.MEMBER_PRE.replace("API_GATEWAY_URL", apiGatewayUrl);
    }

}
